package rwt.server.core;

public interface IClient extends IConnection
{
	/**
	 * Writes the given message string to the client.
	 */
	public void write(String msg);
	
	/**
	 * Returns the user associated with this client, i.e. the user who logged in.
	 */
	public User getUser();
	
	/**
	 * Returns the ID associated with the client. This value is unique only among active clients during a single
	 * run of the server. Restarts at 1 when the server restarts, and increments by 1 with each client that
	 * connects.
	 */
	public int getId();
}
